/*
 * Copyright (c) 2014. kupat Corporation. All rights reserved.
 *  see statement on http://www.kupat.cn.
 */
package com.kfgj.hkp.common.dataaccess.enums;


import com.kfgj.hkp.common.exception.ExceptionEvent;

/**
 * Created by liwensihan on 2014/11/27.
 *
 * @author liwensihan
 */
public enum DataAccessErrorMsg implements ExceptionEvent {

    InsertArgsEmpty("DA1001","插入数据,参数值为空"),
    UpdateArgsEmpty("DA1002","更新数据,参数值为空"),
    DeleteArgsEmpty("DA1003","删除数据,参数值为空"),
    SelectArgsEmpty("DA1004","查询数据,参数值为空");

    private String code;
    private String errorMsg;
    private String[] args;


    DataAccessErrorMsg(String code, String errorMsg){
        this.code = code;
        this.errorMsg = errorMsg;
    }


    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getMessage() {
        return this.errorMsg;
    }

    @Override
    public String[] getArgs() {
        return this.args;
    }
}
